package com.ygqh.baby.po;

import com.ygqh.baby.ao.BillStatus;
import com.ygqh.baby.ao.CommitStatus;
import com.ygqh.baby.ao.DataStatus;
import com.ygqh.baby.ao.WholeSaleRecordType;
import com.ygqh.baby.utils.DateConvertUtils;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Ss
 */
public class YgWholesalerPrebillRecordDetail {
    private Long id;

    private String detailCode;

    private String prebillCode;

    private Long wholesalerId;

    private String wholesalerName;

    private WholeSaleRecordType recordType;

    private String skuCode;

    private Long quantity;

    private BigDecimal wholesalePrice;

    private String deliveryCode;

    private Date deliveryTime;

    private Date createTime;

    private String createBy;

    private DataStatus status;

    /*----------------------------*/

    private BigDecimal totalPrice;

    private CommitStatus commitStatus;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDetailCode() {
        return detailCode;
    }

    public void setDetailCode(String detailCode) {
        this.detailCode = detailCode == null ? null : detailCode.trim();
    }

    public String getPrebillCode() {
        return prebillCode;
    }

    public void setPrebillCode(String prebillCode) {
        this.prebillCode = prebillCode == null ? null : prebillCode.trim();
    }

    public Long getWholesalerId() {
        return wholesalerId;
    }

    public void setWholesalerId(Long wholesalerId) {
        this.wholesalerId = wholesalerId;
    }

    public String getWholesalerName() {
        return wholesalerName;
    }

    public void setWholesalerName(String wholesalerName) {
        this.wholesalerName = wholesalerName == null ? null : wholesalerName.trim();
    }

    public WholeSaleRecordType getRecordType() {
        return recordType;
    }

    public void setRecordType(WholeSaleRecordType recordType) {
        this.recordType = recordType;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode == null ? null : skuCode.trim();
    }

    public Long getQuantity() {
        return quantity;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getWholesalePrice() {
        return wholesalePrice;
    }

    public void setWholesalePrice(BigDecimal wholesalePrice) {
        this.wholesalePrice = wholesalePrice;
    }

    public String getDeliveryCode() {
        return deliveryCode;
    }

    public void setDeliveryCode(String deliveryCode) {
        this.deliveryCode = deliveryCode == null ? null : deliveryCode.trim();
    }

    public Date getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(Date deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public DataStatus getStatus() {
        return status;
    }

    public void setStatus(DataStatus status) {
        this.status = status;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public CommitStatus getCommitStatus() {
        return commitStatus;
    }

    public void setCommitStatus(CommitStatus commitStatus) {
        this.commitStatus = commitStatus;
    }

    public String getRecordTypeDesc() {
        return recordType == null ? null : recordType.getDesc();
    }

    public String getCommitStatusDesc() {
    	return commitStatus == null ? null : commitStatus.getDesc();
	}

	public String getDeliveryTimeStr() {
    	return deliveryTime == null ? null : DateConvertUtils.formatDateTime(deliveryTime);
	}

	public String getCreateTimeStr() {
    	return createTime == null ? null : DateConvertUtils.formatDateTime(createTime);
	}
}